package com.naiterui.ehp.bs.cms.modules.agent.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bp.bo.agent.ProvinceItemBO;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.agent.entity.AsAreaCount;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaStatisticsReportVO;
import com.naiterui.ehp.bs.cms.modules.agent.vo.AreaVO;

/**
 * 经纪人数据统计-区域数据统计表
 *
 * @author yangfuya
 * @since 2022/2/22
 */
@DS(DsName.EHP)
public interface AsAreaCountMapper extends BaseMapper<AsAreaCount> {

    Page<AreaStatisticsReportVO> getPage(@Param("page") IPage page, Long areaId, String typeFormat,
        String dateFormat, String reportDate);

    Page<AreaStatisticsReportVO> getPageProvice(@Param("page") IPage page, Long areaId, String typeFormat,
        String dateFormat, String reportDate);

    List<ProvinceItemBO> getProviceTotal(Long areaId, List<String> proviceAreaIdList, String dateFormat,
        String reportDate);

    List<AreaVO> exportArea(List<String> areaIdList, String dateFormat, List<String> reportDateList);

    List<AreaVO> exportProvice(List<String> areaIdList, String dateFormat, List<String> reportDateList);
}
